<meta title="喵有券配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">appKey</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="text" class="form-control" name="appKey" placeholder="APP KEY"
                   s-valid-error="require()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">淘宝授权账号名</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="text"class="form-control" placeholder="淘宝授权账号名" name="tbName"
                   s-valid-error="require()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">API地址</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="text" class="form-control" name="serverUrl" placeholder="API地址"
                   s-valid-error="require()"/>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>